from tortoise import fields, models
class FoundLotTradeSuggest(models.Model):
    id = fields.BigIntField(pk=True)
    record_status = fields.IntField(default=1, description="记录状态:1-有效;0-无效")
    create_time = fields.DatetimeField(auto_now_add=True, description="记录创建时间")
    update_time = fields.DatetimeField(auto_now=True, description="记录修改时间")
    lot_code = fields.CharField(max_length=50, default='', description="基金批次编码")
    found_code = fields.CharField(max_length=50, default='', description="基金编码")
    found_name = fields.CharField(max_length=200, default='', description="基金名称")
    trade_type = fields.CharField(max_length=200, default='', description="交易类型：买入,卖出")
    trade_date = fields.DateField(null=True, description="交易日期")
    buy_amount = fields.DecimalField(max_digits=10, decimal_places=2, default=0.00, description="买入金额")
    sell_shares = fields.DecimalField(max_digits=10, decimal_places=2, default=0.00, description="卖出份额")
    remark = fields.CharField(max_length=200, default='', description="备注")

    class Meta:
        table = "found_lot_trade_suggest"
        table_description = "交易推荐"
